
export class Config {

    public static WebPortList: Array<number> = [
        // 9600, 9601, 9602, 9603, 9604, 9605
        9606
    ];

    public static Login_Server_Port:number = 9527;


    public static EnvironmentType = {
        Test: 1,
        Online: 2,
    }

    public static environment: number = Config.EnvironmentType.Test;


    public static serverType:string;

    public static ServerType_List = {
        WebServer:"[WebServer]",
        LoginServer:"[LoginServer]",
        GameServer:"[GameServer]",
        MachineServer:"[MachineServer]",
    }

    public static getRedisUrl() {
        if (this.environment == this.EnvironmentType.Test) {
            // return "212.64.108.20"
            // return "192.168.0.73"
            return "127.0.0.1"
        } else {
            return "10.0.0.8"
        }
    }

    public static getRedisPort() {
        if (this.environment == this.EnvironmentType.Test) {
            return 6666
        } else {
            return 6666
        }
    }

    public static getRedisPass() {
        if (this.environment == this.EnvironmentType.Test) {
            return "jhao666"
        } else {
            return "jhao666"
        }
    }

}